package com.cloudptt.api.product.device;

import android.media.AudioManager;

public class PB9830 implements IDevice {

	private static final String BRAND = "Leadcore";
	private static final String DEVICE_1 = "pb9830_mesh";
	private static final String DEVICE_2 = "cx1881_pb9830_a";
	private static final String MODEL_1 = "PB9830";
	private static final String MODEL_2 = "L1861";
	
	public static boolean isThisDev(String brand,String device,String model)
	{
		if(brand == null
				|| device == null
				|| model == null)
		{
			return false;
		}
		else if(BRAND.equals(brand)
				&& DEVICE_1.equals(device)
				&& DEVICE_1.equals(model))
		{
			return true;
		}
		else if(BRAND.equals(brand)
				&& DEVICE_2.equals(device)
				&& MODEL_1.equals(model))
		{
			return true;
		}
		else if(BRAND.equals(brand)
				&& DEVICE_2.equals(device)
				&& MODEL_2.equals(model))
		{
			return true;
		}
		return false;
	}
	
	public PB9830()
	{
	}
	@Override
	public int getStreamType()
	{
		return AudioManager.STREAM_VOICE_CALL;
	}
	@Override
	public int getRingerMode() {
		// TODO Auto-generated method stub
		return AudioManager.MODE_RINGTONE;
	}
	@Override
	public int getPrivateCallMode() {
		// TODO Auto-generated method stub
		return AudioManager.MODE_IN_COMMUNICATION;
	}
	@Override
	public int getOtherCallMode() {
		// TODO Auto-generated method stub
		return AudioManager.MODE_NORMAL;
	}

	@Override
	public boolean isSpecialLockScreen() {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public boolean isSupportCameraSwitch() {
		// TODO Auto-generated method stub
		return false;
	}
	@Override
	public boolean isSetSndAfterFloorTaken()
	{
		return false;
	}
	@Override
	public boolean isSupportAutoUpdate() {
		// TODO Auto-generated method stub
		return false;
	}
}
